Optimal. Leaf size=190 \[ \frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(e f-d g) (f+g x)}-\frac {3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}-\frac {6 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)}+\frac {6 b^3 e n^3 \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 190, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {2444, 2443,
2481, 2421, 6724} \begin {gather*} -\frac {6 b^2 e n^2 \text {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g (e f-d g)}+\frac {6 b^3 e n^3 \text {PolyLog}\left (3,-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)}-\frac {3 b e n \log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{g (e f-d g)}+\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (e f-d g)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2421
Rule 2443
Rule 2444
Rule 2481
Rule 6724
Rubi steps
\begin {align*} \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x)^2} \, dx &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(e f-d g) (f+g x)}-\frac {(3 b e n) \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{f+g x} \, dx}{e f-d g}\\ &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(e f-d g) (f+g x)}-\frac {3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}+\frac {\left (6 b^2 e^2 n^2\right ) \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g (e f-d g)}\\ &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(e f-d g) (f+g x)}-\frac {3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}+\frac {\left (6 b^2 e n^2\right ) \text {Subst}\left (\int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac {e \left (\frac {e f-d g}{e}+\frac {g x}{e}\right )}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g (e f-d g)}\\ &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(e f-d g) (f+g x)}-\frac {3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}-\frac {6 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)}+\frac {\left (6 b^3 e n^3\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g (e f-d g)}\\ &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(e f-d g) (f+g x)}-\frac {3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}-\frac {6 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)}+\frac {6 b^3 e n^3 \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(410\) vs. \(2(190)=380\).
time = 0.23, size = 410, normalized size = 2.16 \begin {gather*} \frac {-3 b (e f-d g) n \log (d+e x) \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2+3 b e n (f+g x) \log (d+e x) \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2-(e f-d g) \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^3-3 b e n (f+g x) \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2 \log (f+g x)+3 b^2 n^2 \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right ) \left (\log (d+e x) \left (g (d+e x) \log (d+e x)-2 e (f+g x) \log \left (\frac {e (f+g x)}{e f-d g}\right )\right )-2 e (f+g x) \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )\right )+b^3 n^3 \left (\log ^2(d+e x) \left (g (d+e x) \log (d+e x)-3 e (f+g x) \log \left (\frac {e (f+g x)}{e f-d g}\right )\right )-6 e (f+g x) \log (d+e x) \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )+6 e (f+g x) \text {Li}_3\left (\frac {g (d+e x)}{-e f+d g}\right )\right )}{g (e f-d g) (f+g x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 1.41, size = 5626, normalized size = 29.61
method | result | size |
risch | \(\text {Expression too large to display}\) | \(5626\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )^{3}}{\left (f + g x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^3}{{\left (f+g\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________